<?php
$handle = curl_init();
$headers = array(
    'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'Accept-Language: cs,en;q=0.8,en-gb;q=0.5,en-us;q=0.3',
    'Accept-Encoding: gzip, deflate',
    'Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7',
    'Keep-Alive: 115',
    'Connection: keep-alive',
    'Content-Type: text/xml',
);
$options = array(
    CURLOPT_URL => 'http://147.251.54.136:8182/places/',
    CURLOPT_POST => 1,
    CURLOPT_POSTFIELDS => file_get_contents('php://input'),
    CURLOPT_USERAGENT => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)',
    CURLOPT_CONNECTTIMEOUT => 20,
    CURLOPT_TIMEOUT => 20,
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_HTTPHEADER => $headers,
    CURLOPT_SSL_VERIFYPEER => 0,
    CURLOPT_SSL_VERIFYHOST => 0,
);
curl_setopt_array($handle, $options);
curl_exec($handle);
curl_close($handle);


